package main

import (
	"io/ioutil"
	"net/http"
)

func main() {
	HttpGet("http://10.128.0.189:9558/v1/api/hot_banner?bflag=69")
}

func HttpGet(url string) (string, error){
	resp, err := http.Get(url)
	if err != nil {
		return "",err
	}

	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return "",err
	}
	return string(body), nil
}
